class Scene3 extends Scene{
	public constructor() {
		super();
	}
	protected  onadd(){
		
		let fs:egret.TextField=new egret.TextField();
		
		let a= Scene2.num;
		fs.text=`分数：${a}`;
		fs.size=50;
		fs.x=0;
		fs.y=0;
		fs.width=this.stage.stageWidth;
		fs.height=50;
		fs.textAlign=egret.HorizontalAlign.CENTER;
		fs.verticalAlign=egret.VerticalAlign.MIDDLE;
		this.addChild(fs);
		//fs.scaleY
		// egret.Tween.get(fs).to({y:500},1000)
		egret.Tween.get(fs).to({scaleX:2,scaleY:2,y:200},1000).to({scaleX:1,scaleY:1,y:300},1000).call(function(){

    		},this);
			
		// let fs = this.shezhi(`分数：${a}`,200,500,200,50,0x000000,true);
		// this.addChild(fs);

		let stragame = this.shezhi("再来一次",140,900,200,50,0x000000,true,this.ontiaozhuan);
		this.addChild(stragame);
		egret.Tween.get(stragame).to({scaleX:2,scaleY:2,y:900},1000).to({scaleX:1,scaleY:1,y:600},1000).call(function(){

    	},this);
	};
	
	private ontiaozhuan(){
		let s2:Scene2 = new Scene2();
		SceneManager.getInstance().changeScene(s2);
		Scene2.num=0;
	}
	protected  onRemove(){
		
	};
}